<template>
  <div class="app-container">
    <el-table :data="list" style="width: 100%;padding-top: 15px;">
      <el-table-column label="标题" min-width="200">
        <template slot-scope="scope">
          {{ scope.row.title | orderNoFilter }}
        </template>
      </el-table-column>
      <el-table-column label="时间" width="195" align="center">
        <template slot-scope="scope">
          ¥{{ scope.row.create_time | formatDate }}
        </template>
      </el-table-column>

    </el-table>
  </div>
</template>

<script>
  import {
    formatDate
  } from '@/utils/formatDate.js'
  export default {
    filters: {
      formatDate(time) {
        time = time * 1000
        let date = new Date(time)
        return formatDate(date, 'yyyy-MM-dd hh:mm:ss')
      }
    },
    data() {
      return {
        list: null
      }
    },
    created() {
      this.fetchData()
    },
    methods: {
      fetchData() {


      }
    }
  }
</script>
